<?php if (!defined('THINK_PATH')) exit();?><form id="pagerForm" action="/Admin/About/newsList/pid/<?php echo ($pid); ?>" method="post">
    <input type="hidden" name="pageNum" value="<?php echo ($page['pageNum']); ?>"/>
<input type="hidden" name="numPerPage" value="<?php echo ($page['numPerPage']); ?>" />
    <input type="hidden" name="pid" value="<?php echo ($search['pid']); ?>" />
</form>
<style>tr td,th{text-align:center}.typestyle{padding: 2px 6px;font-size: 13px;color: #fff;border-radius: 4px;}</style>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="/Admin/About/newsList/pid/<?php echo ($pid); ?>" method="post">
    <div class="searchBar">
        <ul class="searchContent">
			<li>
                <label>标题：</label>
                <input type="text" value="<?php echo ($search['title']); ?>" name="title" style="width:110px">
            </li>
            <li>
                <label>是否推荐：</label>
                <select name="recommend">
                    <option value="">请选择</option>
                    <option value="2" <?php if(2 == $search['recommend']): ?>selected = "selected"<?php endif; ?> >推荐</option>
                    <option value="1" <?php if(1 == $search['recommend']): ?>selected = "selected"<?php endif; ?> >不推荐</option>
                </select>
            </li>
			<li>
				<label>显示状态：</label>
				<select name="status">
					<option value="0">请选择</option>
					<option value="1" <?php if(1 == $search['status']): ?>selected = "selected"<?php endif; ?> >显示</option>
					<option value="2" <?php if(2 == $search['status']): ?>selected = "selected"<?php endif; ?> >隐藏</option>
				</select>
			</li>
        </ul>
        <div class="subBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
            </ul>
        </div>
    </div>
    </form>
</div>

<div class="pageContent">
    <div class="panelBar" style="background:none;">
        <ul class="toolBar">
        	<?php if($pid != 7): ?><li>
                <a href="/Admin/About/create/opttype/15" class="add" rel="article_add" target="navTab"  title="添加"> <!--   -->
                    <i class="iconfont">&#xe601;</i>
                    <span>添加</span>
                </a>
            </li><?php endif; ?>
            <li>
                <a href="/Admin/About/update/id/{sid_user}/opttype/15" rel="article_edit" class="edit" target="navTab" title="编辑">
                    <i class="iconfont">&#xe607;</i>
                    <span>编辑</span>
                </a>
            </li>
        	<?php if($pid != 7): ?><li>
                <a class="delete" href="/Admin/About/remove" target="selectedTodo" rel="id" posttype="string" title="你确定要批量删除吗？">
                    <i class="iconfont">&#xe612;</i>
                    <span>删除</span>
                </a>
            </li><?php endif; ?>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="206">
        <thead>
        <tr>
            <th width="2%" class="txtMid"><input type="checkbox" group="id" class="checkboxCtrl" ></th>
            <th width="5%">编号</th>
            <th width="13%">标题</th>
            <th width="10%">所属分类</th>
            <th width="10%">封面图</th>
            <th width="20%">内容描述</th>
			<th width="10%">排序</th>
            <th width="10%">显示状态</th>
            <th width="10%">创建时间</th>
            <th width="10%">修改时间</th>
        </tr>
        </thead>
        <tbody>
        <?php if($dataList|count > 0): if(is_array($dataList)): $k = 0; $__LIST__ = $dataList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($k % 2 );++$k;?><tr target="sid_user" rel="<?php echo ($value['id']); ?>" >
                    <td class="txtMid"><input name="id" value="<?php echo ($value['id']); ?>" type="checkbox"></td>
                    <td class="txtMid"><?php echo ($key+1); ?></td>
                    <td><?php echo ($value['title']); ?></td>
                    <td>集团新闻</td>
                    <td>
                        <?php if($value['picture'] != ''): ?><a href="<?php echo ($value['picture']); ?>" target="_blank" rel="example_group">
	                    	<img src="<?php echo ($value['picture']); ?>" height="50" />
                            </a>
                        <?php else: ?>
                            无<?php endif; ?>
                    </td>
                    <td><?php echo ($value['intro']); ?></td>            
                    <td><?php echo ($value['sort']); ?></td>			
					<td>
						<?php if($value['status'] == 0): ?><span class="typestyle" style="line-height:60px;background-color:#90EE90;">显示</span>
	                    <?php else: ?>
	                    	<span class="typestyle" style="line-height:60px;background-color:#EE3B3B;">隐藏</span><?php endif; ?>
                    </td>
                    <td><?php echo (date('Y-m-d H:i:s',$value['create_time'])); ?></td>
                    <td><?php echo (date('Y-m-d H:i:s',$value['update_time'])); ?></td>
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            <?php else: ?>
        <tr><td colspan="10" style="text-align:center;">没有数据!!!</td></tr><?php endif; ?>
        </tbody>
    </table>
    <div class="panelBar" style="background:none;">
    <div class="pages">
        <span>显示</span>
        <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
            <?php if(is_array($page['numPerPageArray'])): foreach($page['numPerPageArray'] as $key=>$vo): ?><option value="<?php echo ($vo); ?>"<?php if($vo == $page['numPerPage']): ?>selected='selected'<?php endif; ?>><?php echo ($vo); ?></option><?php endforeach; endif; ?>
        </select>
        <span>条，共<?php echo ($page['all']); ?>条</span>
    </div>
    <div class="pagination" targetType="navTab" totalCount="<?php echo ($page['all']); ?>" numPerPage="<?php echo ($page['numPerPage']); ?>" pageNumShown="10" currentPage="<?php echo ($page['pageNum']); ?>"></div>
</div>
</div>